﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConfigPage.aspx.cs" Inherits="Torch.WL.Web.Admin.Modubles.ConfigPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../../Inc/Style/<%=Request.Cookies["UIStyle"].Value%>/css/indexControl.css"
        rel="stylesheet" type="text/css" />

    <script src="../../../Inc/Script/pub.js" type="text/javascript"></script>

    <link href="../../../resources/css/Framework.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="divToolBar" class="topBar">
        <div class="toolBar">
        </div>
        <div class="moduleName">
            系统配置</div>
    </div>
    <div class="w_wrapper w_marginTop">
        <div class="w_header">
            <div id="strinfo" runat="server" class="w_info" visible="false">
            </div>
        </div>
        <div class="w_content">
            <asp:GridView ID="ConfigList" runat="server" DataKeyNames="ItemID" CssClass="w_table"
                AllowSorting="True" OnRowDataBound="ConfigList_RowDataBound" AllowPaging="True"
                OnPageIndexChanging="ConfigList_PageIndexChanging" PageSize="15" AutoGenerateColumns="False"
                OnRowCancelingEdit="ConfigList_RowCancelingEdit" OnRowEditing="ConfigList_RowEditing"
                OnRowUpdating="ConfigList_RowUpdating" GridLines="None">
                <Columns>
                    <asp:BoundField DataField="ItemID" HeaderText="编号" ReadOnly="True" Visible="False">
                        <ItemStyle HorizontalAlign="Center" Wrap="False" />
                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ItemName" HeaderText="配置项" ReadOnly="True">
                        <ItemStyle HorizontalAlign="Center" Wrap="false" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="配置值">
                        <ItemTemplate>
                            <asp:Label ID="Lab_value" runat="server" Text='<%# Eval("ItemValue") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txt_value" Width="120" MaxLength="30" CssClass="w_text" runat="server"
                                Text='<%# Eval("ItemValue") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ItemDescription" HeaderText="说明" ReadOnly="True">
                        <ItemStyle Wrap="false" />
                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="btn_Edit" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="编辑" CommandArgument='<%# Eval("ItemID")%>'></asp:LinkButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:LinkButton ID="btn_update" runat="server" CausesValidation="True" CommandName="Update"
                                Text="更新"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="btn_cancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="取消"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Wrap="False" />
                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
                <AlternatingRowStyle CssClass="w_trEven" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
